package com.example.smart.ui.m

import com.example.lib.extend.setOnDoubleClickListener
import com.example.lib.utils.statusbar.StatusBarUtils
import com.example.smart.base.ui.activity.BaseActivity
import com.example.smart.R
import com.example.smart.databinding.ActivityAddAnimalQrcodeMBinding
import com.example.smart.utils.DisplayUtils

class MAddAnimalQrCodeActivity : BaseActivity<ActivityAddAnimalQrcodeMBinding>() {

    override fun layoutID() = R.layout.activity_add_animal_qrcode_m

    override fun initView() {
        StatusBarUtils.setStateAndNavigationBar(this@MAddAnimalQrCodeActivity,
            statusBarColor = com.example.lib.R.color.translate)
    }

    override fun initListener() {
        binding.Exit.setOnDoubleClickListener {
            finish()
        }

        binding.Go.setOnDoubleClickListener {
            DisplayUtils.toScan(this@MAddAnimalQrCodeActivity)
        }
    }
}